#include <iostream>
#include <vector>
using namespace std;
class Observer;
class Subject{
	public:
		virtual void registerObserver(Observer o) = 0;
		virtual void removeObserver(Observer o) = 0;
		virtual void notifyObserver() = 0;
};

class Observer{
	public:
		virtual void update(float temp,float humidity,float pressure) = 0;
};

class DisplayElement{
	public:
		virtual void display() = 0;
};

class WeatherData:public Subject{
	public:
		virtual void registerObserver(Observer o){
				observers.push_back(o);
		}
		
	private:
		float temp;
		float humidity;
		float pressure;
		vector <Observer> observers;
		
};
int main(){
	return 0;
}
